<!-- 左方大图 -->
<template>
  <div class="content-map">
    <!-- 上方数量统计 -->
    <div class="top-num">
      <div v-for="(item, index) in dataColumn" :key="index" class="item">
        <div class="itemnum">
          <span class="itemnums" v-for="(item, index) in item.datanum" :key="index">{{ item }}</span>
        </div>
        <div class="itemtext">
          <span>{{ item.name }}</span>
          <img :src="require(`@/wood/images/mintitle${item.image}.png`)
            " class="mintitle" />
        </div>
      </div>
    </div>
    <!-- 中心内容区域 -->
    <div class="banner">
      <!-- 左方数量统计 -->
      <div class="leftnum">
        <div class="countNum" v-for="(item, index) in leftNum" :key="index">
          <div class="top">
            <div class="littletip"></div>
            <countTo :startVal="0" :endVal="item.num" :duration="1000" class="littlenum">{{ item.num }}</countTo>
          </div>
          <div class="bottom">
            <div class="littletext">{{ item.name }}</div>
            <img class="littletitle" :src="require(`@/wood/images/${item.image}.png`)
              " />
          </div>
        </div>

        <!-- 增量比 -->
        <div class="add-percent" v-for="(item, index) in addOrdescend" :key="index + '-only'">
          <div class="top">
            <div class="littletip"></div>
            <div :class="item.type">{{ item.num }}</div>
            <img class="redadd" :src="require(`@/wood/images/${item.image}.png`)
              " />
          </div>
          <div class="bottom">
            <div class="littletext">{{ item.name }}</div>
          </div>
        </div>
      </div>
      <div class="bigimg"></div>
    </div>
  </div>
</template>

<script>
import countTo from "vue-count-to";
export default {
  name: "leftmap",
  components: {
    countTo,
  },
  data() {
    return {
      dataColumn: [
        {
          name: "木材加工企业总数",
          datanum: ["1", "4", "7", "6", "9"],
          image: "1",
        },
        { name: "年总产值", datanum: ["1", "4", "7", "6", "9"], image: "2" },
        {
          name: "电商企业数量",
          datanum: ["1", "4", "7", "6", "9"],
          image: "3",
        },
      ],
      leftNum: [
        {
          name: "进出口总数",
          num: 67682,
          image: "yiyuan", //亿元
        },
        {
          name: "出口类目数",
          num: 1278,
          image: "mintitle3", //个
        },
        {
          name: "规上木材企业数量",
          num: 789,
          image: "mintitle2", //家
        },
      ],
      addOrdescend: [
        {
          name: "企业增量比（年）",
          num: "20.4%",
          type: "littlenum-redadd",
          image: "redadd",
        },
        {
          name: "出口增量比（年）",
          num: "1.14%",
          type: "littlenum-descend",
          image: "descend",
        },
      ],
    };
  },
};
</script>

<style scoped>
.content-map {
  background: url("~@/wood/images/patr-1.png") no-repeat;
  background-size: 100% 98%;
  height: 56vh;

}


.content-map .top-num {
  height: 47px;
  text-align: center;


}

.content-map .top-num .item {
  height: 100%;
  margin-right: 20px;
  display: inline-block;


}

.content-map .top-num .item .itemtext {
  position: relative;
  left: -8%;
  color: #8fb9ff;
  font-family: pangmenzhengdao;
  font-style: oblique;
  font-size: 13px;
  line-height: 27px;
  vertical-align: middle;


}

.content-map .top-num .item .itemtext span {
  vertical-align: middle;
}

.content-map .top-num .item .itemnum {
  height: 55%;
  padding-left: 1%;


}

.content-map .top-num .item .itemnum .itemnums {
  background: url("~@/wood/images/datanumbbg.png") no-repeat;
  background-size: 100% 69%;
  font-size: 23px;
  font-weight: regular;
  padding: 2px 6px 12px 1px;
  margin-right: 4px;
  font-family: PangMenZhengDao;
  font-style: oblique;
  color: #00ffff;
}

.content-map .top-num .item .mintitle {
  position: absolute;
  top: 31%;
  margin-left: 2%;
  vertical-align: middle;
  width: 21%;
  height: 46%;
  display: inline;
}

























.content-map .banner {
  display: flex;
  height: 88%;


}


.content-map .banner .leftnum {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 220px;
  min-width: 210px;
  padding-top: 5%;
  padding-left: 5%;
  margin-bottom: 7%;
}

.content-map .banner .leftnum .countNum .top {
  position: relative;


}

.content-map .banner .leftnum .countNum .top .littletip {
  background: url("~@/wood/images/AE数据标.png") no-repeat;
  vertical-align: middle;
  height: 22px;
  width: 11%;
  display: inline-block;
}

.content-map .banner .leftnum .countNum .top .littlenum {
  font-family: pangmenzhengdao;
  font-style: oblique;
  vertical-align: middle;
  color: #a3eaff;
  font-size: 14px;
  font-weight: Regular;
  padding-left: 6%;
  display: inline-block;
}


.content-map .banner .leftnum .countNum .bottom .littletext {
  font-weight: Regular;
  font-family: pangmenzhengdao;
  font-style: oblique;
  font-size: 13px;
  color: #8fb9ff;
  display: inline-block;
  margin-left: 15%;
  margin-right: 4px;
  vertical-align: middle;
}

.content-map .banner .leftnum .countNum .bottom .littletitle {
  vertical-align: middle;
  /* // background-size: 79%; */
  height: 14px;
  width: 17%;
  display: inline-block;
}





.content-map .banner .leftnum .add-percent .top {
  position: relative;


}

.content-map .banner .leftnum .add-percent .top .littletip {
  background: url("~@/wood/images/littletip.png") no-repeat;
  vertical-align: middle;
  height: 22px;
  width: 11%;
  display: inline-block;
}

.content-map .banner .leftnum .add-percent .top .littlenum-redadd {
  font-family: pangmenzhengdao;
  font-style: oblique;
  color: #e94047;
  font-size: 14px;
  font-weight: Regular;
  padding-left: 6%;
  position: absolute;
  left: 10%;
  top: 8%;
}

.content-map .banner .leftnum .add-percent .top .littlenum-descend {
  font-family: pangmenzhengdao;
  font-style: oblique;
  color: #06d28d;
  font-size: 14px;
  font-weight: Regular;
  padding-left: 6%;
  position: absolute;
  left: 10%;
  top: 8%;
}

.content-map .banner .leftnum .add-percent .top .redadd {
  vertical-align: middle;
  width: 8%;
  position: absolute;
  left: 45%;
  top: 34%;
}


.content-map .banner .leftnum .add-percent .bottom .littletext {
  font-weight: Regular;
  font-family: pangmenzhengdao;
  font-style: oblique;
  font-size: 13px;
  color: #8fb9ff;
  display: inline-block;
  margin-left: 15%;
  margin-right: 2px;
}





























.content-map .banner .bigimg {
  background: url("~@/wood/images/AE木材工厂.png") no-repeat;

  background-size: 90% 110%;
  background-position: 28% 113%;
  width: 100%;
}
</style>
